import request from '@/utils/request'

// 查询检验项目记录列表
export function listInspectionItem(query) {
  return request({
    url: '/quality/inspectionItem/list',
    method: 'get',
    params: query
  })
}

// 查询检验项目记录详细
export function getInspectionItem(recordId) {
  return request({
    url: '/quality/inspectionItem/' + recordId,
    method: 'get'
  })
}

// 新增检验项目记录
export function addInspectionItem(data) {
  return request({
    url: '/quality/inspectionItem',
    method: 'post',
    data: data
  })
}

// 修改检验项目记录
export function updateInspectionItem(data) {
  return request({
    url: '/quality/inspectionItem',
    method: 'put',
    data: data
  })
}

// 删除检验项目记录
export function delInspectionItem(recordId) {
  return request({
    url: '/quality/inspectionItem/' + recordId,
    method: 'delete'
  })
}